//
//  QuotesBottomSectionView.m
//  CBT
//
//  Created by 四点钟 on 2018/11/17.
//  Copyright © 2018 Mr.Zhang. All rights reserved.
//

#import "QuotesBottomSectionView.h"

@interface QuotesBottomSectionView()

@property (nonatomic, strong) UIView *rootView;
 @property (strong, nonatomic) UIImageView *iconImageView;
@property (strong, nonatomic) UILabel *showLabel;

@end

@implementation QuotesBottomSectionView

- (void)initSubViews
{
    self.backgroundColor = [UIColor clearColor];
    
    _rootView = [[UIView alloc]init];
    _rootView.backgroundColor = [UIColor whiteColor];
    [self addSubview:_rootView];
    
    _iconImageView = [[UIImageView alloc]init];
    _iconImageView.image = [UIImage imageNamed:@"hangqing_kuaixun"];
    [_rootView addSubview:_iconImageView];
    
    _showLabel = [[UILabel alloc]init];
    _showLabel.font = [UIFont systemFontOfSize:15];
    _showLabel.textColor = UIColorFromRGB(0x333333);
    [_rootView addSubview:_showLabel];
    
    [self detaultInfo];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    [_rootView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.right.mas_equalTo(-15);
        make.top.bottom.mas_equalTo(0);
    }];
    
    [_iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.top.mas_equalTo(11);
        make.width.mas_equalTo(18);
        make.height.mas_equalTo(20);
    }];
    
    [_showLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.iconImageView.mas_right).offset(10);
        make.top.bottom.right.mas_equalTo(0);
    }];
}

- (void)detaultInfo
{
    _showLabel.text = kLocalizedString(@"快讯", nil);
}

- (void)changeLanguage{
    
    [self detaultInfo];
}
@end
